﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace GMAC.ReportingSystem.Business.Entities.Configuration
{
    public class LoadFileParameter
    {
        public string Key { get; set; }
        public string Name { get; set; }
        public bool FromHeader { get; set; }
        public string Value { get; set; }
        public string HeaderText { get; set; }
    }

    public class LoadFileParameterCollection : List<LoadFileParameter>
    {

        public string this[string key]
        {
            get
            {
                foreach (LoadFileParameter parameter in this)
                {
                    if (String.Compare(parameter.Key, key, false) == 0)
                        return parameter.Value;
                }
                return string.Empty;
            }
        }
    }
}
